# delimit ;
clear ;
set more off ;
pause on ;
cd "R:/personlig/fenellac/menarche_replication/build" ;

* **************************************************************************** ;
* This is the master do-file that runs the do files in the "/build/code" folder
* in the intended order.
*
* Paper: "Age of Marriage and Women's Political Engagement: Evidence from India"
* Authors: Fenella Carpena, Francesca Jensenius
* 
* Code by Fenella Carpena
* Last update: May 2, 2020
* **************************************************************************** ;

* **************************************************************************** ;
* run all do files 
* **************************************************************************** ;

* process original IHDS data files ;
do "./code/ihds02.do" ;

* create dataset containing outcome variables ;
do "./code/eligible-women-ihds02-lhs.do" ;

* create dataset containing regressors/control variables ;
do "./code/eligible-women-ihds02-rhs.do" ;

* **************************************************************************** ;
* erase all temporary files 
* **************************************************************************** ;

local tempfiles: dir "./temp/" files "*.dta" ;

foreach t of local tempfiles { ;
	erase "./temp/`t'" ;
} ;

exit ;




	
